package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the per_cwa_res database table.
 * 
 */
@Entity
@Table(name="per_cwa_res")
@NamedQuery(name="PerCwaRes.findAll", query="SELECT p FROM PerCwaRes p")
public class PerCwaRes implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int resid;

	private String resrem;

	private String resstat;

	private Timestamp restime;

	//bi-directional many-to-one association to PerCwaCwas
	@ManyToOne
	@JoinColumn(name="CWASID")
	private PerCwaCwas perCwaCwa;

	//bi-directional many-to-one association to PerCwaRsn
	@ManyToOne
	@JoinColumn(name="RSNID")
	private PerCwaRsn perCwaRsn;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp;

	public PerCwaRes() {
	}

	public int getResid() {
		return this.resid;
	}

	public void setResid(int resid) {
		this.resid = resid;
	}

	public String getResrem() {
		return this.resrem;
	}

	public void setResrem(String resrem) {
		this.resrem = resrem;
	}

	public String getResstat() {
		return this.resstat;
	}

	public void setResstat(String resstat) {
		this.resstat = resstat;
	}

	public Timestamp getRestime() {
		return this.restime;
	}

	public void setRestime(Timestamp restime) {
		this.restime = restime;
	}

	public PerCwaCwas getPerCwaCwa() {
		return this.perCwaCwa;
	}

	public void setPerCwaCwa(PerCwaCwas perCwaCwa) {
		this.perCwaCwa = perCwaCwa;
	}

	public PerCwaRsn getPerCwaRsn() {
		return this.perCwaRsn;
	}

	public void setPerCwaRsn(PerCwaRsn perCwaRsn) {
		this.perCwaRsn = perCwaRsn;
	}

	public PerPmsEmp getPerPmsEmp() {
		return this.perPmsEmp;
	}

	public void setPerPmsEmp(PerPmsEmp perPmsEmp) {
		this.perPmsEmp = perPmsEmp;
	}

}